<?php

Route::group(['middleware' => 'web', 'prefix' => 'admin', 'namespace' => 'Modules\Admin\Http\Controllers'], function() {
    //登录等操作是否需要判断用户已经登录? 不需要判断是否登陆
    Auth::routes();
});
Route::group(['middleware' => ['web','auth:houtai'], 'prefix' => 'admin', 'namespace' => 'Modules\Admin\Http\Controllers'], function()
{
    Route::get('/', 'AdminController@index');
    //后台模块用户管理资源路由
    Route::resource('/adminuser','AdminUserController');
});
